package com.back.menu.service;

import java.math.BigInteger;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.back.menu.bean.Nodes;
import com.back.menu.bean.Tbl_menu;
import com.back.menu.dao.MenuDao;

@Service
public class MenuService {

	@Autowired
	private MenuDao dao;
	
	public Nodes findRootNodes(Integer pid){
		return dao.findRootNodes(pid);
	}
	public List<Nodes> findchileNodes(BigInteger pid){
		return dao.findchileNodes(pid);
	}
	public List<Tbl_menu> findMenus(){
		return dao.findMenus();
	}
}
